<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('用户详情')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <input type="hidden" id="id" name="id" th:value="${id}"/>
                </div>
            </form>
        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:member:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:member:remove')}]];
    var statusDatas = [[${@dict.getType('member_status')}]];
    var prefix = ctx + "system/member";

    $(function () {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "用户详情",
            columns: [{
                checkbox: false
            },
                {
                    field: 'id',
                    title: '主键ID',
                    visible: false
                },
                {
                    field: 'username',
                    title: '昵称'
                },
                {
                    field: 'memberCar',
                    title: '姓名',
                    formatter: function (value,row,index) {
                        if(value==null){
                            return "-";
                        }else{
                            return value.name;
                        }
                    }
                },
                {
                    field: 'mobile',
                    title: '手机号'
                },
                {
                    field: 'memberCar',
                    title: '车牌号',
                    formatter: function (value,row,index) {
                        if(value==null){
                            return "未绑定";
                        }else{
                            return value.licensePlate;
                        }
                    }
                },
                {
                    field: 'memberCar',
                    title: '车架号',
                    formatter: function (value,row,index) {
                        if(value==null){
                            return "未绑定";
                        }else{
                            return value.frameNo;
                        }
                    }
                },]
        };
        $.table.init(options);
    });


</script>
</body>
</html>